package com.kuqi.blog.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.util.List;

/**
 * @author:kuqi
 * @createTime:2021/12/17 10:34
 * @description:
 */

@Data
public class CommentVo {
    //分布式id比较长，防止精度损失
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;   //comment对象相同变量

    private UserVo  author;

    private String content;   //comment对象相同变量

    private List<CommentVo> childrens;

    private Long createDate;   //comment对象相同变量

    private Integer level;   //comment对象相同变量

    private UserVo toUser;
}
